$(function(){
    var demos=[
    {
        name:"NOSQL：",
        pages:[
            {
                name:"layer弹窗",
                url:"/up7/nosql/layer"
            },
            {
                name:"单面板",
                url:"/up7/nosql/panel"
            }]
    },
    {
        name:"上传：",
        pages:[
            {
                name:"清空数据库",
                url:"/up7/clear"
            },
            {
                name:"多标签",
                url:"/up7/index"
            },
            {
                name:"单面板",
                url:"/up7/panel"
            },
            {
                name:"vue.js引用",
                url:"/up7/vue"
            },
            {
                name:"layer弹窗",
                url:"/up7/layer"
            },
            {
                name:"文件管理器示例",
                url:"/up7/filemgr"
            }
            ]
    },
        {
            name:"加密和压缩：",
            pages:[
                {
                    name:"sm4(国密)加密传输",
                    url:"/up7/safe/sm4"
                },
                {
                    name:"sm4(国密)-md5加密传输",
                    url:"/up7/safe/sm4-md5"
                },
                {
                    name:"sm4(国密)-gzip-加密压缩传输",
                    url:"/up7/safe/sm4-gzip"
                },
                {
                    name:"aes加密传输",
                    url:"/up7/safe/aes"
                },
                {
                    name:"aes-md5加密传输",
                    url:"/up7/safe/aes-md5"
                },
                {
                    name:"aes-gzip-加密压缩传输",
                    url:"/up7/safe/aes-gzip"
                },
                {
                    name:"gzip-压缩传输",
                    url:"/up7/safe/gzip"
                },
                {
                    name:"zip-压缩传输",
                    url:"/up7/safe/zip"
                },
            ]
        },
        {
            name:"对象存储：",
            pages:[
                {
                    name:"阿里云对象存储(OSS)",
                    url:"/up7/cloud/oss"
                },
                {
                    name:"华为云对象存储(OBS)",
                    url:"/up7/cloud/obs"
                },
                {
                    name:"百度云对象存储(BOS)",
                    url:"/up7/cloud/bos"
                },
                {
                    name:"MinIO",
                    url:"/up7/cloud/minio"
                },
                {
                    name:"亚马逊对象存储(S3)",
                    url:"/up7/cloud/s3"
                },
            ]
        },
        {
            name:"下载：",
            pages:[
                {
                    name:"清空数据库",
                    url:"/down3/clear"
                },
                {
                    name:"下载示例",
                    url:"/down3/index"
                }
            ]
        },
    ];
    $(demos).each(function(i,n){
        var tmps=["<ul>","<li><b>"+n.name+"</b></li>"];
        $(n.pages).each(function(i,n){
            tmps.push("<li><a target='_blank' href='"+n.url+"'>"+n.name+"</a></li>");
        });
        tmps.push("</ul>");
        $("#demos").append(tmps.join(""));
    });
});